package module.keyBoard
{
	import flash.display.StageDisplayState;
	import flash.events.KeyboardEvent;
	import flash.ui.Keyboard;
	
	import main.App;
	import main.mvc.GController;
	
	public class KeyBoardController extends GController
	{
		public function KeyBoardController()
		{
			super();
		}
		
		override public function start():void
		{
			App.appStage.addEventListener(KeyboardEvent.KEY_DOWN,onKeyDown);
		}
		
		protected function onKeyDown(event:KeyboardEvent):void
		{
			switch(event.charCode)
			{
				case 102:
				{
					if(event.ctrlKey)
					{
						App.appStage.displayState = StageDisplayState.FULL_SCREEN;
					}
					break;
				}
					
				default:
				{
					break;
				}
			}
		}
	}
}